<?php
/**
 * Joomla! 1.5 component ArticleCashRewards
 *
 * @version $Id: view.html.php 2009-05-10 01:47:01 svn $
 * @author Maverick
 * @package views.cpanel
 * @subpackage ArticleCashRewards
 * @license GNU/GPL
 * Website: http://www.boddunan.com
 *
 * Review and approve the articles and assign points and cash rewards.
 * Users can see their articles and the points/cash rewards assigned in the front-end module.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Import Joomla! libraries
jimport( 'joomla.application.component.view');
class ArticleCashRewardsViewCPanel extends JView {
	
    function display($tpl = null) {
	
		JToolBarHelper::title("&nbsp;&nbsp;&nbsp;&nbsp;" . JText::_('ArticleCashRewards'), 'acr-48.png');
		JToolBarHelper::preferences('com_articlecashrewards', '250');
        $model = $this->getModel();

		$pending =& $model->getPendingArticles();
		$approved =& $model->getApprovedArticles();
		$rejected =& $model->getRejectedArticles();

		jimport('joomla.html.pane');
		$pane =& JPane::getInstance('sliders');
		$this->assignRef('pane', $pane);
		$this->assignRef('pending', $pending);
		$this->assignRef('approved', $approved);
		$this->assignRef('rejected', $rejected);

		parent::display($tpl);
    }
}
?>